let a = [1, 2, 3, 4, 5];
console.log(a.slice(1, 3));
console.log(a.splice(0, 1), a);
